package com.smz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smz.entity.TCargo;


public interface TCargoService extends IService<TCargo> {
    /**
     * 按条件分页查询
     * @param current
     * @param rows
     * @param tShelvesNo
     * @param damId
     * @param wareId
     * @return
     */
    Page<TCargo> findPageTCargo(Integer current,Integer rows,Integer tShelvesNo,Integer damId,Integer wareId);

    /**
     * 搜索分页查询
     * @param current
     * @param rows
     * @return
     */
    Page<TCargo> findPageTCargoSearch(Integer current,Integer rows,Integer tShelvesNo,Integer cargoNo,Integer cargoState);
    //DY
    String moveGoods(TCargo tCargo);

    /**
     * @Authoe: smz
     * @Description: 分页查询
     * @Date: 15:19 2021-11-24
     */
    IPage<TCargo> findPageTCargo(Integer size, Integer current, String dameId, String wareId, String shelvesNo);

    /**
     * @Authoe: smz
     * @Description: 搜索框
     * @Date: 15:19 2021-11-24
     */
    IPage<TCargo> selectTCargoByWareId(String wareId,String pNumber,String pName,int size,int current);

    /**
     * @Authoe: smz
     * @Description: 根据仓库，库区，货架，货位查询是否存在商品
     * @Date: 10:29 2021-11-30
     */
    TCargo findTCargoByMenuIdAndMore(String menuId,String reservoirId,String shelvesId,String cargoId);
}
